<head th:fragment="header">
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title></title>
	<meta name="keywords" content="">
	<meta name="description" content="">
	<link rel="shortcut icon" href="favicon.ico">
	<link href="css/bootstrap.min.css?v=3.3.6"
		  th:href="@{/css/bootstrap.min.css?v=3.3.6}" rel="stylesheet">
	<link href="/css/font-awesome.css?v=4.4.0"
		  th:href="@{/css/font-awesome.css?v=4.4.0}" rel="stylesheet">
	<link href="/css/plugins/bootstrap-table/bootstrap-table.min.css"
		  th:href="@{/css/plugins/bootstrap-table/bootstrap-table.min.css}"
		  rel="stylesheet">
	<link href="/css/plugins/jsTree/style.min.css" rel="stylesheet">
	<link href="/css/plugins/bootstrap-select/bootstrap-select.css" rel="stylesheet">
	<link href="/css/plugins/jqTreeGrid/jquery.treegrid.css"
		  rel="stylesheet">
	<!--summernote css -->
	<link href="/css/plugins/summernote/summernote-0.8.8.css"
		  rel="stylesheet">
	<link href="css/animate.css" th:href="@{/css/animate.css}"
		  rel="stylesheet">
	<link href="/css/plugins/chosen/chosen.css" rel="stylesheet">
	<link rel="stylesheet" href="/css/selectpage.css" type="text/css">
	<link rel="stylesheet" href="/js/layui-v2.6.6/layui/css/layui.css">
	<link href="/css/style.css?v=4.1.0" th:href="@{/css/style.css?v=4.1.0}"
		  rel="stylesheet">
	<style>
		#btnUpload{
			margin-top: 10px;
		}
		.layui-upload-file {
			display: none!important;
			opacity: .01;
			filter: Alpha(opacity=1);
		}
	</style>
</head>

<div th:fragment="footer">
	<script src="/js/jquery.min.js?v=2.1.4"></script>
	<script src="/js/bootstrap.min.js?v=3.3.6"></script>
	<script src="/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
	<script src="/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
	<script src="/js/plugins/bootstrap-select/bootstrap-select.js"></script>
	<script src="/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
	<script src="/js/plugins/validate/jquery.validate.min.js"></script>
	<script src="/js/plugins/validate/jquery.validate.extend.js"></script>
	<script src="/js/plugins/validate/messages_zh.min.js"></script>
	<script src="/js/plugins/jsTree/jstree.min.js"></script>
	<script src="/js/plugins/jqTreeGrid/jquery.treegrid.min.js"></script>
	<script src="/js/plugins/jqTreeGrid/jquery.treegrid.extension.js"></script>
	<script src="/js/plugins/jqTreeGrid/jquery.treegrid.bootstrap3.js"></script>
	<script src="/js/plugins/chosen/chosen.jquery.js"></script>
	<script src="/js/plugins/layer/layer.js"></script>
	<script src="/js/layui-v2.6.6/layui/layui.js"></script>
	<script src="/js/content.js?v=1.0.0"></script>
	<!--summernote-->
	<script src="/js/plugins/summernote/summernote.js"></script>
	<script src="/js/plugins/summernote/summernote-zh-CN.min.js"></script>
	<!--分页下拉框-->
	<script type="text/javascript" src="/js/selectpage.js" ></script>
	<script type="text/javascript" src="/js/jquery-form.js"></script>
	<script src="/js/webJs/defaultConfig/style.config.js"></script>
	<script type="text/javascript" src="/js/contabs.js"></script>
	<script type="text/javascript">
		let themeColors = ''
		$().ready( function() {
			cteated(501).then((res) => {
				switch (res) {
					case '1':
						themeColors = getComputedStyle(document.documentElement).getPropertyValue('--default')
						$('.columns').removeClass('btn-right').addClass('btn-left');
						break;
					case '2':
						themeColors = getComputedStyle(document.documentElement).getPropertyValue('--custom')
						$('.columns').removeClass('btn-left').addClass('btn-right');
						break;
					default:
						break;
				}
				$(".btn-success").css("background-color", themeColors);
				$(".btn-success").css("border", themeColors);
				$(".btn-primary").css("background-color", themeColors);
				$(".btn-primary").css("border", themeColors);
			});
		})

		document.addEventListener('DOMContentLoaded', function() {
			// 模拟在页面加载后2秒将按钮样式修改为红色
			setTimeout(function() {
				$(".btn-success").css("background-color",themeColors);
				$(".btn-success").css("border", themeColors);
				$(".btn-primary").css("background-color", themeColors);
				$(".btn-primary").css("border", themeColors);
			}, 300);
		});

	</script>
</div>
